<?php

namespace App\Http\Controllers;

//获取道具列表
use App\Common\Sql;

class GetItemList extends Base
{

    public function logic()
    {
        $data     = array();
        $row      =  Sql::select('t_item_conf');
        foreach ($row as $info) {
            $item                = array();
            $item['id']          = (int)$info['id'];
            $item['name']        = $info['name'];
            $item['type']        = (int)$info['type'];
            $item['desc']        = $info['desc'];
            $item['icon_id']     = (int)$info['icon_id'];
            $data['item_list'][] = $item;
        }
        return $this->returnData($data);
    }
}
